const setCfrom = (data) => {
  let paramsArr = []
  for (let item in data) {
    paramsArr.push(item + '=' + data[item])
  }
  let url = 'https://t.qxwcard.com/promote/accesslog.php?' + paramsArr.join('&')
  sendRequest(url)
}

function sendRequest(url) {
  let img = new Image()
  img.src = url
}

Vue.prototype.$setCfrom = setCfrom
export default setCfrom
